import { requestClient } from '#/api/request';

// 列表
export const queryPage = (params: any) =>
  requestClient.get('/front/user/page', { params });

// 添加
export const queryAdd = (params: any) =>
  requestClient.post('/front/user/add', params);

// 编辑
export const queryUpdate = (params: any) =>
  requestClient.post('/front/user/update', params);

// 修改状态
export const setStatus = (params: any) =>
  requestClient.post('/front/user/setStatus', params);

// 删除
export const queryRemove = (params: any) =>
  requestClient.post('/front/user/delete', params);

// 书馆列表
export const bbsList = (params: any) =>
  requestClient.get('/bus/bbs/list', { params });

// 已分配书馆列表
// params{
//   storeId,
//   userId,
// }
export const busList = (params: any) =>
  requestClient.get('/bus/bus/list', { params });

// 分配书馆
// params{
//   storeId,
//   userId,
// }
export const busSave = (params: any) =>
  requestClient.post('/bus/bus/save', params);

// 解除分配微馆
export const busRemove = (params: any) =>
  requestClient.post('/bus/bus/remove', params);
